t=`date +%s`
echo $t
static_dir='/usr/local/nginx/html/static-doubanxia/enabled/webroot/'
find ./view -type f -name '*.css' | xargs cat > movie_packed_$t.css
sed -i "s/movie_packed_.*\.css/movie_packed_$t.css/g" './view/default/conf.tpl'
mv movie_packed_$t.css ${static_dir}css/
find ./view -type f -name '*.js' | xargs cat > movie_packed_$t.js
sed -i "s/movie_packed_.*\.js/movie_packed_$t.js/g" './view/default/conf.tpl'
mv movie_packed_$t.js ${static_dir}js/
